package com.kehutong.admin.service;

import org.coraframework.inject.Inject;
import org.coraframework.mvc.http.Bean;
import org.coraframework.mvc.http.ReqMapping;
import org.coraframework.mvc.webservice.WebService;
import org.coraframework.orm.jdbc.JdbcSession;

import com.kehutong.admin.entity.Log;
import com.kehutong.common.errcode.Result;

@WebService("/admin/service/log")
public class LogService {
	
	@Inject
	private JdbcSession jdbcSession;

	@Bean(newInstance=true, copy=true)
	@ReqMapping("/doLog")
	public Object doLog(Log log) {
		
		jdbcSession.insert(log);
		
		return Result.success();
	}
}
